RegisterCommand
Mac OSThe
RegisterCommand
method associates a command ID with the specified menu/menu item designation.
void RegisterCommand (in ODCommandID command, in ODMenuID menu, in ODMenuItemID menuItem);
command
- The command ID to be associated with the specified menu/menu item designation. On the Mac OS platform, the command ID is defined as a signed 32-bit value.
menu
- A platform-specific identifier for a menu. On the Mac OS platform, the menu ID is defined as a signed 16-bit value.
menuItem
- A platform-specific identifier for a menu item. On the Mac OS platform, the menu item ID is defined as a signed 16-bit value.
DISCUSSION
Command IDs above 20,000 are reserved for parts. If your part registers command IDs, it should use numbers greater than 20,000.SEE ALSO
TheODCommandID
type (page 895).
TheODMenuBar::UnregisterCommand
method (page 410).
"Registering and Retrieving Command IDs" on page 242 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help